// $Id: filedistributorinsert.h 67 2004-11-09 14:59:24Z hansemil $
#ifndef FILEDISTRIBUTORINSERT_H
#define FILEDISTRIBUTORINSERT_H

#include "filedistributor.h"

/**
 * Distributes files by calling inserts on a random node for each file, transfering using the naive network model. Very stable, very proper.
 */
class FileDistributorInsert : public FileDistributor {
public:
	FileDistributorInsert(std::list<Node *> *, unsigned int);
	void distribute();

private:
	Node *getClosestNode(File *);
	unsigned int m_insertHTL;
};

#endif
